calNum = 200000000


function test()
    local sum = 0
    for i=0,calNum - 1 do
        sum = i + sum
    end
    return sum
end

local start = os.clock()
test()
local endTime = os.clock()

print(endTime - start)